#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()
{
	int a;
	int min = 0, min_i = 0;
	int n = 0;
	scanf("%d", &n);
	
	scanf("%d", &a);
	min = a;
	min_i = 0;

	int i = 0;
	for (i = 1; i < n; i++)
	{
		scanf("%d", &a);
		if (min > a)
		{
			min = a;
			min_i = i;
		}
	}

	printf("%d %d", min, min_i);
	return 0;
}